<?php
/* @var $this ProposalController */
/* @var $model Proposal */


$this->breadcrumbs=array(
	  Yii::t('proposal_messages','proposals'),
);

/* $this->menu=array(
	array('label'=> Yii::t('proposal_messages','proposal.label'), 'url'=>array('create')),
); */

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#proposal-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1><?php echo Yii::t('proposal_messages','proposal.manage'); ?></h1>


<?php echo CHtml::link(Yii::t('user_messages','advanced.search'),'#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'proposal-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'name',
		array(
		'name'=>'proposalType',
		'value'=>'$data->typeString',
		'filter'=>false,
),
		'createddate',
		array(
			'class'=>'bootstrap.widgets.TbButtonColumn',
			'template'=>'{view} {delete}',
		),
		
		
	),
)); ?>